import request from '@/utils/request'

// 查询佣金提现审核列表
export function listWithdraw(query) {
  return request({
    url: '/shopping/withdraw/list',
    method: 'get',
    params: query
  })
}

// 查询佣金提现审核详细
export function getWithdraw(id) {
  return request({
    url: '/shopping/withdraw/' + id,
    method: 'get'
  })
}

// 新增佣金提现审核
export function addWithdraw(data) {
  return request({
    url: '/shopping/withdraw',
    method: 'post',
    data: data
  })
}

// 修改佣金提现审核
export function pass(ids) {
  return request({
    url: `/shopping/withdraw/pass/${ids}`,
    method: 'put',
  })
}
//拒绝提现申请
export function refuse(data) {
  return request({
    url: `/shopping/withdraw/refuse`,
    method: 'put',
    data:data
  })
}
// 删除佣金提现审核
export function delWithdraw(id) {
  return request({
    url: '/shopping/withdraw/' + id,
    method: 'delete'
  })
}
// 删除佣金提现审核
export function logicDelWithdraw(id) {
  return request({
    url: '/shopping/withdraw/' + id,
    method: 'delete'
  })
}

// 导出佣金提现审核
export function exportWithdraw(query) {
  return request({
    url: '/shopping/withdraw/export',
    method: 'get',
    params: query
  })
}
